package com.spring.dao.example;

import com.spring.bean.example.Book;
import com.spring.bean.page.Page;
import com.spring.bean.page.PageView;
import com.spring.exception.DaoException;

public interface BookDao {
	
	public PageView<Book> queryForPage(Page page) throws DaoException;

	public int save(Book book) throws DaoException;

	public boolean update(Book book) throws DaoException;

	public boolean delete(Book book) throws DaoException;

	public Book getById(Integer id) throws DaoException;
	
  }
